/**
 * Created by xuzhihan on 2018/1/9.
 */
(function () {
  'use strict';

  requirejs.config({
    map: {
      "*": {
        "css": "lib/require-css/css.min.js"
      }
    },
    waitSeconds: 0,
    baseUrl: "./",
    urlArgs: "20180109",// 版本控制
    paths: {
      text: 'lib/require-text/text.2.0.15',
      root: "common/root",
      vue: "lib/vue/vue.min",
      vueRouter: "lib/vue-router/vue-router.min",
      jquery: "lib/jquery/jquery.min",
      ajaxConfig: "common/ajaxConfig",
      ELEMENT:"https://cdn.bootcss.com/element-ui/2.4.0/index",
    },
    shim: {
      //root: {
      //    deps: ["vue", "vue.router", "jquery"],
      //},
      vueRouter: {
        deps: ["vue"],
      },
      elementUi: {
        deps: ["vue"],
      },
      index: {
        deps: ["vue", "VueRouter"],
      },

    }
  });

  require(["root"]);

  //define(["vue", "vue.router"], function(Vue, VueRouter){
  //    var router = new VueRouter({
  //        routes: [
  //            {
  //                path: "/:page",
  //                component: function () {
  //                    var p = Promise();
  //                    console.log(this.$route.params.page);
  //                    return p.
  //                }
  //            }
  //        ]
  //    })
  //
  //});

})();


//var app = {};
//app.initVue = function(data) {
//    new Vue(data);
//};
